package com.zhuiYun.project.api.shArea.model;

import com.zhuiYun.project.api.shArea.entiy.ShArea;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

/**
 * @ClassName ShAreaModel
 * @Description TODO
 * @Author 胡亮
 * @Date 2023/04/15 上午 09:45
 **/
@ApiModel("地址类")
@Data
public class ShAreaModel implements Serializable {

    @ApiModelProperty("主键id新增时无需填写")
    private Integer id;
    //父id
    @ApiModelProperty("父id")
    private Integer pid;
    //简称
    @ApiModelProperty("简称")
    private String shortname;
    //名称
    @ApiModelProperty("名称")
    private String name;
    //全称
    @ApiModelProperty("全称")
    private String mergerName;
    //层级 0 1 2 省市区县
    @ApiModelProperty("层级 0 1 2 省市区县")
    private Integer level;
    //拼音
    @ApiModelProperty("拼音")
    private String pinyin;
    //长途区号
    @ApiModelProperty("长途区号")
    private String code;
    //邮编
    @ApiModelProperty("邮编")
    private String zipCode;
    //首字母
    @ApiModelProperty("首字母")
    private String first;
    //经度
    @ApiModelProperty("经度")
    private String lng;
    //纬度
    @ApiModelProperty("纬度")
    private String lat;

    //存市县
    @Transient
    @ApiModelProperty("存市县")
    private List<com.zhuiYun.project.api.shArea.entiy.ShArea> ShArea;
}
